<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
    <title><?php echo empty($page_title) ? C('WEB_SITE_TITLE') : $page_title; ?></title>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
	<meta content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport">
    <meta content="application/xhtml+xml;charset=UTF-8" http-equiv="Content-Type">
    <meta content="no-cache,must-revalidate" http-equiv="Cache-Control">
    <meta content="no-cache" http-equiv="pragma">
    <meta content="0" http-equiv="expires">
    <meta content="telephone=no, address=no" name="format-detection">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
    <link rel="stylesheet" type="text/css" href="/Public/Home/css/mobile_module.css?v=<?php echo SITE_VERSION;?>" media="all">
    <script type="text/javascript">
		//静态变量
		var IMG_PATH = "/Public/Home/images";
		var STATIC_PATH = "/Public/static";
		var SITE_URL = "<?php echo SITE_URL;?>";
		var WX_APPID = "<?php echo ($jsapiParams["appId"]); ?>";
		var	WXJS_TIMESTAMP='<?php echo ($jsapiParams["timestamp"]); ?>'; 
		var NONCESTR= '<?php echo ($jsapiParams["nonceStr"]); ?>'; 
		var SIGNATURE= '<?php echo ($jsapiParams["signature"]); ?>';
	</script>
    <script type="text/javascript" src="/Public/static/jquery-2.0.3.min.js"></script>
	<script type="text/javascript" src="http://yaotv.qq.com/shake_tv/include/js/lib/zepto.1.1.4.min.js"></script>
	<script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
	<script type="text/javascript" src="minify.php?f=/Public/Home/js/prefixfree.min.js,/Public/Home/js/m/dialog.js,/Public/Home/js/m/flipsnap.min.js,/Public/Home/js/m/mobile_module.js&v=<?php echo SITE_VERSION;?>"></script>
</head>
<link href="<?php echo ADDON_PUBLIC_PATH;?>/mobile/common.css?v=<?php echo SITE_VERSION;?>" rel="stylesheet" type="text/css">
<link href="<?php echo CUSTOM_TEMPLATE_PATH;?>Public/shop.css?v=<?php echo SITE_VERSION;?>" rel="stylesheet" type="text/css">
<body>
    <div class="container">
        <!-- 店标和名称 -->
        <div class="shop_row">
			<div class="shop_row_img">
				<img src="<?php echo CUSTOM_TEMPLATE_PATH;?>Public/xintu1.jpg" />
			</div>
        	<?php if(!empty($shop["logo"])): ?><div class="shop_row_logo">
					<img src="<?php echo CUSTOM_TEMPLATE_PATH;?>Public/xintu_logo.png" />
					<div class="shop_row_logo_text">
					<?php echo ($fenlei["title"]); ?>
					</div>
				</div><?php endif; ?>
        </div>
		<div class="shop_zhuban">
			<a href="<?php echo U('shop_intro',array('shop_id'=>$shop_id,'cid'=>$fenlei[id]));?>">
				<div class="shop_zhuban_img" style="width:auto;">
				<?php echo ($fenlei["title"]); ?>众筹项目介绍
				</div>
				<div class="shop_zhuban_t_box">
					<div class="shop_zhuban_text">
					<?php echo ($fenlei["content"]); ?>
					</div>
				</div>
			</a>
		</div>
		<div class="shop_chouk">
			<a href="<?php echo U('lists',array('shop_id'=>$shop_id,'cid'=>$fenlei[id]));?>">
				<div class="shop_chouk_t_box">
					<div class="shop_chouk_text">
					众筹支持与回报内容
					</div>
				</div>
			</a>
		</div>
		<!--<div class="shop_chouk">
			<a href="">
				<div class="shop_chouk_t_box">
					<div class="shop_chouk_text">
					筹款动态
					</div>
				</div>
			</a>
		</div>-->
		<div class="shop_chounow" >
			
				<div class="shop_chounow_t_box">
					<div class="shop_chounow_text" style="background:none;">
						<div class="shop_chounow_li1">
						<?php echo ($ren_baifen); ?>%
						</div>
						<div class="shop_chounow_li2" style="line-height:30px;">
							<!--<div>&yen;<?php echo ($qian); ?></div>-->
							<div>目标 <?php echo ($zongkucun); ?>份</div>
							<?php $jieshutime=$fenlei['end_time']; if(time()>$jieshutime){ ?>
								<div>活动已结束</div>
							<?php }else{ ?>
								<div>剩余 <?php echo ($shengday); ?></div>
							<?php } ?>
						</div>
						<div class="shop_chounow_li3">
							<?php echo ($ren_num); ?>份爱心
						</div>
					</div>
				</div>
			
		</div>
        
    </div>	
    
    <!-- 底部导航 -->
   <div class="bottom_menus"> 
<a class="home" href="<?php echo U('index', array('shop_id'=>$shop_id,'cid'=>$fenlei[id]));?>"></a> 
<a class="zcbtn" href="<?php echo U('lists',array('shop_id'=>$shop_id,'cid'=>$fenlei[id]));?>"><?php echo ($fenlei["title"]); ?></a> 
<a class="center" href="<?php echo U('user_center', array('shop_id'=>$shop_id,'cid'=>$fenlei[id]));?>"></a> 
</div>
<p class="copyright"><?php echo ($system_copy_right); echo ($tongji_code); ?></p>

   
<script type="text/javascript">
$(function(){
	//通用banner 滑动
	$.WeiPHP.initBanner(true,5000);
	
	//搜索功能
	$("#search").click(function(){
		var url = $(this).attr('url');
        var query  = $('.search_form').serialize();
        query = query.replace(/(&|^)(\w*?\d*?\-*?_*?)*?=?((?=&)|(?=$))/g,'');
        query = query.replace(/^&/g,'');
        if( url.indexOf('?')>0 ){
            url += '&' + query;
        }else{
            url += '?' + query;
        }
		window.location.href = url;
	});	
})
</script>    
</body>
</html>